package org.jeecg.modules.minqing.service.impl;

import org.jeecg.modules.minqing.entity.ResourceManage;
import org.jeecg.modules.minqing.mapper.ResourceManageMapper;
import org.jeecg.modules.minqing.service.IResourceManageService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Description: 资源分布管理
 * @Author: jeecg-boot
 * @Date:   2020-02-10
 * @Version: V1.0
 */
@Service
public class ResourceManageServiceImpl extends ServiceImpl<ResourceManageMapper, ResourceManage> implements IResourceManageService {


    @Override
    public void updateWholeTable(List<ResourceManage> list) {
        baseMapper.clearTable();
        this.saveBatch(list);
    }
}
